home *** CD-ROM | disk | FTP | other *** search
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- QImage - Hardware-independent pixmap representation with
- direct access to the pixel data
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <qimage.h>
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- QQQQIIIImmmmaaaaggggeeee (((())))
- QQQQIIIImmmmaaaaggggeeee (((( iiiinnnntttt _w_i_d_t_h,,,, iiiinnnntttt _h_e_i_g_h_t,,,, iiiinnnntttt _d_e_p_t_h
- QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt QQQQSSSSiiiizzzzeeee &&&&,,,, iiiinnnntttt _d_e_p_t_h,,,, iiiinnnntttt _n_u_m_C_o_l_o_r_s====0000,,,, EEEEnnnnddddiiiiaaaannnn
- _b_i_t_O_r_d_e_r
- QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_e_N_a_m_e,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_o_r_m_a_t====0000 ))))
- QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** xxxxppppmmmm[[[[]]]] ))))
- QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& ))))
- ~~~~QQQQIIIImmmmaaaaggggeeee ()
- QQQQIIIImmmmaaaaggggeeee&&&& ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& ))))
- QQQQIIIImmmmaaaaggggeeee&&&& ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt QQQQPPPPiiiixxxxmmmmaaaapppp &&&& ))))
- vvvvooooiiiidddd ddddeeeettttaaaacccchhhh (((())))
- QQQQIIIImmmmaaaaggggeeee ccccooooppppyyyy (((()))) ccccoooonnnnsssstttt
- QQQQIIIImmmmaaaaggggeeee ccccooooppppyyyy (((( iiiinnnntttt _x,,,, iiiinnnntttt _y,,,, iiiinnnntttt _w
- QQQQIIIImmmmaaaaggggeeee ccccooooppppyyyy (((( QQQQRRRReeeecccctttt &&&& )))) ccccoooonnnnsssstttt
- bbbboooooooollll iiiissssNNNNuuuullllllll (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt wwwwiiiiddddtttthhhh (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt hhhheeeeiiiigggghhhhtttt (((()))) ccccoooonnnnsssstttt
- QQQQSSSSiiiizzzzeeee ssssiiiizzzzeeee (((()))) ccccoooonnnnsssstttt
- QQQQRRRReeeecccctttt rrrreeeecccctttt (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt ddddeeeepppptttthhhh (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt nnnnuuuummmmCCCCoooolllloooorrrrssss (((()))) ccccoooonnnnsssstttt
- EEEEnnnnddddiiiiaaaannnn bbbbiiiittttOOOOrrrrddddeeeerrrr (((()))) ccccoooonnnnsssstttt
- QQQQRRRRggggbbbb ccccoooolllloooorrrr (((( iiiinnnntttt iiii )))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttCCCCoooolllloooorrrr (((( iiiinnnntttt _i,,,, QQQQRRRRggggbbbb cccc ))))
- vvvvooooiiiidddd sssseeeettttNNNNuuuummmmCCCCoooolllloooorrrrssss (((( iiiinnnntttt ))))
- bbbboooooooollll hhhhaaaassssAAAAllllpppphhhhaaaaBBBBuuuuffffffffeeeerrrr (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttAAAAllllpppphhhhaaaaBBBBuuuuffffffffeeeerrrr (((( bbbboooooooollll ))))
- bbbboooooooollll aaaallllllllGGGGrrrraaaayyyy (((()))) ccccoooonnnnsssstttt
- bbbboooooooollll iiiissssGGGGrrrraaaayyyyssssccccaaaalllleeee (((()))) ccccoooonnnnsssstttt
- uuuucccchhhhaaaarrrr**** bbbbiiiittttssss (((()))) ccccoooonnnnsssstttt
- uuuucccchhhhaaaarrrr**** ssssccccaaaannnnLLLLiiiinnnneeee (((( iiiinnnntttt )))) ccccoooonnnnsssstttt
- uuuucccchhhhaaaarrrr******** jjjjuuuummmmppppTTTTaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
- QQQQRRRRggggbbbb**** ccccoooolllloooorrrrTTTTaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt nnnnuuuummmmBBBByyyytttteeeessss (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt bbbbyyyytttteeeessssPPPPeeeerrrrLLLLiiiinnnneeee (((()))) ccccoooonnnnsssstttt
- bbbboooooooollll ccccrrrreeeeaaaatttteeee (((( iiiinnnntttt _w_i_d_t_h,,,, iiiinnnntttt _h_e_i_g_h_t,,,, iiiinnnntttt _d_e_p_t_h
- bbbboooooooollll ccccrrrreeeeaaaatttteeee (((( ccccoooonnnnsssstttt QQQQSSSSiiiizzzzeeee &&&&,,,, iiiinnnntttt _d_e_p_t_h,,,, iiiinnnntttt _n_u_m_C_o_l_o_r_s====0000,,,,
- EEEEnnnnddddiiiiaaaannnn _b_i_t_O_r_d_e_r
- vvvvooooiiiidddd rrrreeeesssseeeetttt (((())))
- vvvvooooiiiidddd ffffiiiillllllll (((( uuuuiiiinnnntttt ppppiiiixxxxeeeellll ))))
- QQQQIIIImmmmaaaaggggeeee ccccoooonnnnvvvveeeerrrrttttDDDDeeeepppptttthhhh (((( iiiinnnntttt )))) ccccoooonnnnsssstttt
- QQQQIIIImmmmaaaaggggeeee ccccoooonnnnvvvveeeerrrrttttDDDDeeeepppptttthhhhWWWWiiiitttthhhhPPPPaaaalllleeeetttttttteeee (((( iiiinnnntttt,,,, QQQQRRRRggggbbbb **** _p,,,, iiiinnnntttt _p_c,,,, iiiinnnntttt
- _c_f
- QQQQIIIImmmmaaaaggggeeee ccccoooonnnnvvvveeeerrrrttttDDDDeeeepppptttthhhh (((( iiiinnnntttt,,,, iiiinnnntttt ccccoooonnnnvvvveeeerrrrssssiiiioooonnnn____ffffllllaaaaggggssss )))) ccccoooonnnnsssstttt
-
-
-
- Page 1 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- QQQQIIIImmmmaaaaggggeeee ccccoooonnnnvvvveeeerrrrttttBBBBiiiittttOOOOrrrrddddeeeerrrr (((( EEEEnnnnddddiiiiaaaannnn )))) ccccoooonnnnsssstttt
- QQQQIIIImmmmaaaaggggeeee ssssmmmmooooooootttthhhhSSSSccccaaaalllleeee (((( iiiinnnntttt _w_i_d_t_h,,,, iiiinnnntttt hhhheeeeiiiigggghhhhtttt )))) ccccoooonnnnsssstttt
- QQQQIIIImmmmaaaaggggeeee ccccrrrreeeeaaaatttteeeeAAAAllllpppphhhhaaaaMMMMaaaasssskkkk (((( iiiinnnntttt ccccoooonnnnvvvveeeerrrrssssiiiioooonnnn____ffffllllaaaaggggssss )))) ccccoooonnnnsssstttt
- QQQQIIIImmmmaaaaggggeeee ccccrrrreeeeaaaatttteeeeHHHHeeeeuuuurrrriiiissssttttiiiiccccMMMMaaaasssskkkk (((( bbbboooooooollll _c_l_i_p_T_i_g_h_t====TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
- bbbboooooooollll llllooooaaaadddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_e_N_a_m_e,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_o_r_m_a_t====0000 ))))
- bbbboooooooollll llllooooaaaaddddFFFFrrrroooommmmDDDDaaaattttaaaa (((( ccccoooonnnnsssstttt uuuucccchhhhaaaarrrr **** _b_u_f,,,, uuuuiiiinnnntttt _l_e_n,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr
- **** _f_o_r_m_a_t
- bbbboooooooollll llllooooaaaaddddFFFFrrrroooommmmDDDDaaaattttaaaa (((( QQQQBBBByyyytttteeeeAAAArrrrrrrraaaayyyy _d_a_t_a,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_o_r_m_a_t====0000 ))))
- bbbboooooooollll ssssaaaavvvveeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _f_i_l_e_N_a_m_e,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- ccccoooonnnnsssstttt
- bbbboooooooollll vvvvaaaalllliiiidddd (((( iiiinnnntttt _x,,,, iiiinnnntttt yyyy )))) ccccoooonnnnsssstttt
- iiiinnnntttt ppppiiiixxxxeeeellllIIIInnnnddddeeeexxxx (((( iiiinnnntttt _x,,,, iiiinnnntttt yyyy )))) ccccoooonnnnsssstttt
- QQQQRRRRggggbbbb ppppiiiixxxxeeeellll (((( iiiinnnntttt _x,,,, iiiinnnntttt yyyy )))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttPPPPiiiixxxxeeeellll (((( iiiinnnntttt _x,,,, iiiinnnntttt _y,,,, uuuuiiiinnnntttt iiiinnnnddddeeeexxxx____oooorrrr____rrrrggggbbbb ))))
-
- SSSSttttaaaattttiiiicccc PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- EEEEnnnnddddiiiiaaaannnn ssssyyyysssstttteeeemmmmBBBBiiiittttOOOOrrrrddddeeeerrrr (((())))
- EEEEnnnnddddiiiiaaaannnn ssssyyyysssstttteeeemmmmBBBByyyytttteeeeOOOOrrrrddddeeeerrrr (((())))
- ccccoooonnnnsssstttt cccchhhhaaaarrrr**** iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
- QQQQSSSSttttrrrrLLLLiiiisssstttt iiiinnnnppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((())))
- QQQQSSSSttttrrrrLLLLiiiisssstttt oooouuuuttttppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((())))
-
- RRRREEEELLLLAAAATTTTEEEEDDDD FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- (Note that these are not member functions.)
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< ((((QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& _s,,,, ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&&
- _i_m_a_g_e))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> ((((QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& _s,,,, QQQQIIIImmmmaaaaggggeeee &&&& _i_m_a_g_e))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The QImage class provides a hardware-independent pixmap
- representation with direct access to the pixel data.
-
- It is one of the two classes Qt provides for dealing with
- images, the other being QPixmap. QImage is designed and
- optimized for I/O and for direct pixel access/manipulation,
- QPixmap is designed and optimized for drawing. There are
- (slow) functions to convert between QImage and QPixmp;
- QPixmap::convertToImage() and QPixmap::convertFromImage().
-
- An image has the parameters width, height and depth (bits
- per pixel, bpp), a color table and the actual pixels. QImage
- supports 1-bpp, 8-bpp and 32-bpp image data. 1-bpp and 8-bpp
- images use a color lookup table; the pixel value is a color
- table index.
-
- 32-bpp images encode an RGB value in 24 bits and ignore the
- color table. The most significant byte is used for the alpha
- buffer.
-
- An entry in the color table is an RGB triplet encoded as
- uint. Use the qRed, qGreen and qBlue functions (qcolor.h) to
- access the components, and qRgb to make an RGB triplet (see
-
-
-
- Page 2 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- the QColor class documentation).
-
- 1-bpp (monochrome) images have a color table with maximum 2
- colors. There are two different formats; big endian (MSB
- first) or little endian (LSB first) bit order. To access a
- single bit, you will have to do some bitshifts:
-
- QImage image;
- // sets bit at (x,y) to 1
- if ( image.bitOrder() == QImage::LittleEndian )
- *(image.scanLine(y) + (x >> 3)) |= 1 << (x & 7);
- else
- *(image.scanLine(y) + (x >> 3)) |= 1 << (7 -(x & 7));
-
- If this looks complicated, it might be a good idea to
- convert the 1-bpp image to an 8-bpp image using
- convertDepth().
-
- 8-bpp images are much easier to work with than 1-bpp images
- because they have a single byte per pixel:
-
- QImage image;
- // set entry 19 in the color table to yellow
- image.setColor( 19, qRgb(255,255,0) );
- // set 8 bit pixel at (x,y) to value yellow (in color table)
- *(image.scanLine(y) + x) = 19;
-
- 32-bpp images ignore the color table, instead each pixel
- contains the RGB triplet. 24 bits contain the RGB value and
- the most significant byte is reserved for the alpha buffer.
-
- QImage image;
- // sets 32 bit pixel at (x,y) to yellow.
- uint *p = (uint *)image.scanLine(y) + x;
- *p = qRgb(255,255,0);
-
- The scanlines are 32-bit aligned for all depths.
-
- The QImage class uses explicit sharing, similar to that of
- QArray and QString.
-
- See also: QImageIO, QPixmap and Shared Classes
-
- Examples: qtimage/qtimage.cpp desktop/desktop.cpp
- qmag/qmag.cpp
-
- MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- QQQQIIIImmmmaaaaggggeeee::::::::QQQQIIIImmmmaaaaggggeeee (((())))
- Constructs a null image.
-
- See also: isNull().
-
-
-
-
- Page 3 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- QQQQIIIImmmmaaaaggggeeee::::::::QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& iiiimmmmaaaaggggeeee ))))
- Constructs a shallow copy of _i_m_a_g_e.
-
- QQQQIIIImmmmaaaaggggeeee::::::::QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt====0000 ))))
- Constructs an image from loading _f_i_l_e_N_a_m_e and an optional
- _f_o_r_m_a_t.
-
- See also: load().
-
- QQQQIIIImmmmaaaaggggeeee::::::::QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** xxxxppppmmmm[[[[]]]] ))))
- Constructs an image from _x_p_m, which must be a valid XPM
- image.
-
- Errors are silently ignored.
-
- QQQQIIIImmmmaaaaggggeeee::::::::QQQQIIIImmmmaaaaggggeeee (((( iiiinnnntttt wwww,,,, iiiinnnntttt hhhh,,,, iiiinnnntttt ddddeeeepppptttthhhh,,,, iiiinnnntttt nnnnuuuummmmCCCCoooolllloooorrrrssss====0000,,,, EEEEnnnnddddiiiiaaaannnn
- bbbbiiiittttOOOOrrrrddddeeeerrrr====IIIIggggnnnnoooorrrreeeeEEEEnnnnddddiiiiaaaannnn ))))
- Constructs an image with _w width, _h height, _d_e_p_t_h bits per
- pixel, _n_u_m_C_o_l_o_r_s colors and bit order _b_i_t_O_r_d_e_r.
-
- Using this constructor is the same as first constructing a
- null image and then calling the create() function.
-
- See also: create().
-
- QQQQIIIImmmmaaaaggggeeee::::::::QQQQIIIImmmmaaaaggggeeee (((( ccccoooonnnnsssstttt QQQQSSSSiiiizzzzeeee &&&&,,,, iiiinnnntttt ddddeeeepppptttthhhh,,,, iiiinnnntttt nnnnuuuummmmCCCCoooolllloooorrrrssss====0000,,,,
- EEEEnnnnddddiiiiaaaannnn bbbbiiiittttOOOOrrrrddddeeeerrrr====IIIIggggnnnnoooorrrreeeeEEEEnnnnddddiiiiaaaannnn ))))
- This is an overloaded member function, provided for
- convenience. It differs from the above function only in what
- argument(s) it accepts.
-
- QQQQIIIImmmmaaaaggggeeee::::::::~~~~QQQQIIIImmmmaaaaggggeeee (((())))
- Destroys the image and cleans up.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::aaaallllllllGGGGrrrraaaayyyy (((()))) ccccoooonnnnsssstttt
- Returns TRUE if all the colors in the image are shades of
- gray, that is their R, G, and B components are equal. This
- function is slow for large 32-bit images.
-
- QQQQIIIImmmmaaaaggggeeee::::::::EEEEnnnnddddiiiiaaaannnn QQQQIIIImmmmaaaaggggeeee::::::::bbbbiiiittttOOOOrrrrddddeeeerrrr(((()))) ccccoooonnnnsssstttt
- Returns the bit order for the image.
-
- If it is a 1-bpp image, this function returns either
- QImage::BigEndian or QImage::LittleEndian.
-
- If it is not a 1-bpp image, this function returns
- QImage::IgnoreEndian.
-
- See also: depth().
-
- uuuucccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeee::::::::bbbbiiiittttssss (((()))) ccccoooonnnnsssstttt
- Returns a pointer to the first pixel data. Equivalent to
-
-
-
- Page 4 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- scanLine(0).
-
- See also: scanLine().
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::bbbbyyyytttteeeessssPPPPeeeerrrrLLLLiiiinnnneeee (((()))) ccccoooonnnnsssstttt
- Returns the number of bytes per image scanline. This is
- equivalent to numBytes()/height().
-
- QQQQRRRRggggbbbb QQQQIIIImmmmaaaaggggeeee::::::::ccccoooolllloooorrrr (((( iiiinnnntttt iiii )))) ccccoooonnnnsssstttt
- Returns the color in the color table at index _i.
-
- A color value is an RGB triplet. Use the QRED, QGREEN and
- QBLUE functions (defined in qcolor.h) to get the color value
- components.
-
- See also: setColor() and QColor.
-
- QQQQRRRRggggbbbb **** QQQQIIIImmmmaaaaggggeeee::::::::ccccoooolllloooorrrrTTTTaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
- Returns a pointer to the color table.
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccoooonnnnvvvveeeerrrrttttBBBBiiiittttOOOOrrrrddddeeeerrrr (((( EEEEnnnnddddiiiiaaaannnn bbbbiiiittttOOOOrrrrddddeeeerrrr )))) ccccoooonnnnsssstttt
- Converts the bit order of the image to _b_i_t_O_r_d_e_r and returns
- the converted image.
-
- Returns *this if the _b_i_t_O_r_d_e_r is equal to the image bit
- order, or a null image if this image cannot be converted.
-
- See also: bitOrder() and setBitOrder().
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccoooonnnnvvvveeeerrrrttttDDDDeeeepppptttthhhh (((( iiiinnnntttt ddddeeeepppptttthhhh,,,, iiiinnnntttt ccccoooonnnnvvvveeeerrrrssssiiiioooonnnn____ffffllllaaaaggggssss ))))
- ccccoooonnnnsssstttt
- Converts the depth (bpp) of the image to _d_e_p_t_h and returns
- the converted image. The original image is left undisturbed.
-
- The _d_e_p_t_h argument must be 1, 8 or 32.
-
- See QPixmap::convertFromImage for a description of the
- _c_o_n_v_e_r_s_i_o_n__f_l_a_g_s argument.
-
- Returns *this if _d_e_p_t_h is equal to the image depth, or a
- null image if this image cannot be converted.
-
- See also: depth() and isNull().
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccoooonnnnvvvveeeerrrrttttDDDDeeeepppptttthhhh (((( iiiinnnntttt ddddeeeepppptttthhhh )))) ccccoooonnnnsssstttt
- This is an overloaded member function, provided for
- convenience. It differs from the above function only in what
- argument(s) it accepts.
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccoooonnnnvvvveeeerrrrttttDDDDeeeepppptttthhhhWWWWiiiitttthhhhPPPPaaaalllleeeetttttttteeee (((( iiiinnnntttt dddd,,,, QQQQRRRRggggbbbb **** ppppaaaalllleeeetttttttteeee,,,,
- iiiinnnntttt ppppaaaalllleeeetttttttteeee____ccccoooouuuunnnntttt,,,, iiiinnnntttt ccccoooonnnnvvvveeeerrrrssssiiiioooonnnn____ffffllllaaaaggggssss====0000 )))) ccccoooonnnnsssstttt
- Note: currently no closest-color search is made. If colors
-
-
-
- Page 5 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- are found that are not in the palette, the palette may not
- be used at all. This result should not be considered valid,
- as it may change in future implementations.
-
- Currently inefficient for non 32-bit images.
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccooooppppyyyy (((()))) ccccoooonnnnsssstttt
- Returns a deep copy of the image.
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccooooppppyyyy (((( iiiinnnntttt xxxx,,,, iiiinnnntttt yyyy,,,, iiiinnnntttt wwww,,,, iiiinnnntttt hhhh,,,, iiiinnnntttt
- ccccoooonnnnvvvveeeerrrrssssiiiioooonnnn____ffffllllaaaaggggssss====0000 )))) ccccoooonnnnsssstttt
- Returns a deep copy of a sub-area of the image.
-
- See also: bitBlt().
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccooooppppyyyy (((( QQQQRRRReeeecccctttt &&&& rrrr )))) ccccoooonnnnsssstttt
- This is an overloaded member function, provided for
- convenience. It differs from the above function only in what
- argument(s) it accepts.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::ccccrrrreeeeaaaatttteeee (((( iiiinnnntttt wwwwiiiiddddtttthhhh,,,, iiiinnnntttt hhhheeeeiiiigggghhhhtttt,,,, iiiinnnntttt ddddeeeepppptttthhhh,,,, iiiinnnntttt
- nnnnuuuummmmCCCCoooolllloooorrrrssss====0000,,,, EEEEnnnnddddiiiiaaaannnn bbbbiiiittttOOOOrrrrddddeeeerrrr====IIIIggggnnnnoooorrrreeeeEEEEnnnnddddiiiiaaaannnn ))))
- Sets the image width, height, depth, number of colors and
- bit order. Returns TRUE if successful, or FALSE if the
- parameters are incorrect or if memory cannot be allocated.
-
- The _w_i_d_t_h and _h_e_i_g_h_t is limited to 32767. _d_e_p_t_h must be 1, 8
- or 32. If _d_e_p_t_h is 1, then _b_i_t_O_r_d_e_r must be set to either
- QImage::LittleEndian or QImage::BigEndian. For other depths,
- _b_i_t_O_r_d_e_r must be QImage::IgnoreEndian.
-
- This function allocates a color table and a buffer for the
- image data. The image data is not initialized.
-
- The image buffer is allocated as a single block that
- consists of a table of scanline pointers (jumpTable()) and
- the image data (bits()).
-
- See also: width(), height(), depth(), numColors(),
- bitOrder(), jumpTable(), scanLine(), bits(), bytesPerLine()
- and numBytes().
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::ccccrrrreeeeaaaatttteeee (((( ccccoooonnnnsssstttt QQQQSSSSiiiizzzzeeee &&&&,,,, iiiinnnntttt ddddeeeepppptttthhhh,,,, iiiinnnntttt nnnnuuuummmmCCCCoooolllloooorrrrssss====0000,,,,
- EEEEnnnnddddiiiiaaaannnn bbbbiiiittttOOOOrrrrddddeeeerrrr====IIIIggggnnnnoooorrrreeeeEEEEnnnnddddiiiiaaaannnn ))))
- This is an overloaded member function, provided for
- convenience. It differs from the above function only in what
- argument(s) it accepts.
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccrrrreeeeaaaatttteeeeAAAAllllpppphhhhaaaaMMMMaaaasssskkkk (((( iiiinnnntttt ccccoooonnnnvvvveeeerrrrssssiiiioooonnnn____ffffllllaaaaggggssss )))) ccccoooonnnnsssstttt
- Builds and returns a 1-bpp mask from the alpha buffer in
- this image. Returns a null image if alpha buffer mode is
- disabled.
-
-
-
- Page 6 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- See QPixmap::convertFromImage for a description of the
- _c_o_n_v_e_r_s_i_o_n__f_l_a_g_s argument.
-
- The returned image has little-endian bit order, which you
- can convert to big-endianness using convertBitOrder().
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ccccrrrreeeeaaaatttteeeeHHHHeeeeuuuurrrriiiissssttttiiiiccccMMMMaaaasssskkkk (((( bbbboooooooollll cccclllliiiippppTTTTiiiigggghhhhtttt====TTTTRRRRUUUUEEEE )))) ccccoooonnnnsssstttt
- Creates and returns a 1-bpp heuristic mask for this image.
- It works by selecting a color from one of the corners, then
- chipping away pixels of that color, starting at all the
- edges.
-
- The four corners vote over which color is to be masked away.
- In case of a draw (this generally means that this function
- is not applicable to the image) the voting results are
- undocumented.
-
- The returned image has little-endian bit order, which you
- can convert to big-endianness using convertBitOrder().
-
- This function disregards the alpha buffer.
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::ddddeeeepppptttthhhh (((()))) ccccoooonnnnsssstttt
- Returns the depth of the image.
-
- The image depth is the number of bits used to encode a
- single pixel, also called bits per pixel (bpp) or bit planes
- of an image.
-
- The supported depths are 1, 8 and 32.
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::ddddeeeettttaaaacccchhhh (((())))
- Detaches from shared image data and makes sure that this
- image is the only one referring the data.
-
- If multiple images share common data, this image makes a
- copy of the data and detaches itself from the sharing
- mechanism. Nothing is done if there is just a single
- reference.
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::ffffiiiillllllll (((( uuuuiiiinnnntttt ppppiiiixxxxeeeellll ))))
- Fills the entire image with the pixel value _p_i_x_e_l.
-
- If the depth of this image is 1, only the lowest bit is
- used. If you say fill(0), fill(2) etc., the image is filled
- with 0s. If you say fill(1), fill(3) etc., the image is
- filled with 1s. If the depth is 8, the lowest 8 bits are
- used.
-
- If the depth is 32 and the image has no alpha buffer, the
- _p_i_x_e_l value is written to each pixel in the image. If the
- image has an alpha buffer, only the 24 RGB bits are set and
-
-
-
- Page 7 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- the upper 8 bits (alpha value) are left unchanged.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::hhhhaaaassssAAAAllllpppphhhhaaaaBBBBuuuuffffffffeeeerrrr (((()))) ccccoooonnnnsssstttt
- Returns TRUE if alpha buffer mode is enabled, otherwise
- FALSE.
-
- See also: setAlphaBuffer().
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::hhhheeeeiiiigggghhhhtttt (((()))) ccccoooonnnnsssstttt
- Returns the height of the image.
-
- See also: width(), size() and rect().
-
- ccccoooonnnnsssstttt cccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeee::::::::iiiimmmmaaaaggggeeeeFFFFoooorrrrmmmmaaaatttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee ))))
- [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a string that specifies the image format of the file
- _f_i_l_e_N_a_m_e, or null if the file cannot be read or if the
- format cannot be recognized.
-
- The QImageIO documentation lists the guaranteed supported
- image formats, or use the QImage::inputFormats()
- QImage::outputFormats() to get lists that include installed
- formats.
-
- See also: load() and save().
-
- QQQQSSSSttttrrrrLLLLiiiisssstttt QQQQIIIImmmmaaaaggggeeee::::::::iiiinnnnppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a list of image formats which are supported for
- image input.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::iiiissssGGGGrrrraaaayyyyssssccccaaaalllleeee (((()))) ccccoooonnnnsssstttt
- Returns TRUE if the image is allGray(), _a_n_d if the image is
- 32-bpp or a 256-color 8-bpp image for which color(i) is
- QRgb(i,i,i).
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::iiiissssNNNNuuuullllllll (((()))) ccccoooonnnnsssstttt
- Returns TRUE if it is a null image.
-
- A null image has all parameters set to zero and no allocated
- data.
-
- Examples: qtimage/qtimage.cpp
-
- uuuucccchhhhaaaarrrr ******** QQQQIIIImmmmaaaaggggeeee::::::::jjjjuuuummmmppppTTTTaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
- Returns a pointer to the scanline pointer table.
-
- This is the beginning of the data block for the image.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::llllooooaaaadddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt====0000
- ))))
- Loads an image from the file _f_i_l_e_N_a_m_e. Returns TRUE if
- successful, or FALSE if the image could not be loaded.
-
-
-
- Page 8 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- If _f_o_r_m_a_t is specified, the loader attempts to read the
- image using the specified format. If _f_o_r_m_a_t is not specified
- (default), the loader reads a few bytes from the header to
- guess the file format.
-
- The QImageIO documentation lists the supported image formats
- and explains how to add extra formats.
-
- See also: loadFromData(), save(), imageFormat(),
- QPixmap::load() and QImageIO.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::llllooooaaaaddddFFFFrrrroooommmmDDDDaaaattttaaaa (((( ccccoooonnnnsssstttt uuuucccchhhhaaaarrrr **** bbbbuuuuffff,,,, uuuuiiiinnnntttt lllleeeennnn,,,, ccccoooonnnnsssstttt
- cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt====0000 ))))
- Loads an image from the binary data in _b_u_f (_l_e_n bytes).
- Returns TRUE if successful, or FALSE if the image could not
- be loaded.
-
- If _f_o_r_m_a_t is specified, the loader attempts to read the
- image using the specified format. If _f_o_r_m_a_t is not specified
- (default), the loader reads a few bytes from the header to
- guess the file format.
-
- The QImageIO documentation lists the supported image formats
- and explains how to add extra formats.
-
- See also: load(), save(), imageFormat(),
- QPixmap::loadFromData() and QImageIO.
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::llllooooaaaaddddFFFFrrrroooommmmDDDDaaaattttaaaa (((( QQQQBBBByyyytttteeeeAAAArrrrrrrraaaayyyy bbbbuuuuffff,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt====0000
- ))))
- This is an overloaded member function, provided for
- convenience. It differs from the above function only in what
- argument(s) it accepts.
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::nnnnuuuummmmBBBByyyytttteeeessss (((()))) ccccoooonnnnsssstttt
- Returns the number of bytes occupied by the image data.
-
- See also: bytesPerLine().
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::nnnnuuuummmmCCCCoooolllloooorrrrssss (((()))) ccccoooonnnnsssstttt
- Returns the size of the color table for the image.
-
- Notice that numColors() returns 0 for 32-bpp images, since
- these images do not use color tables, but instead encode
- pixel values as RGB triplets.
-
- QQQQIIIImmmmaaaaggggeeee &&&& QQQQIIIImmmmaaaaggggeeee::::::::ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt QQQQPPPPiiiixxxxmmmmaaaapppp &&&& ppppiiiixxxxmmmmaaaapppp ))))
- Sets the image bits to the _p_i_x_m_a_p contents and returns a
- reference to the image.
-
- If the image shares data with other images, it will first
- dereference the shared data.
-
-
-
- Page 9 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- Makes a call to QPixmap::convertToImage().
-
- QQQQIIIImmmmaaaaggggeeee &&&& QQQQIIIImmmmaaaaggggeeee::::::::ooooppppeeeerrrraaaattttoooorrrr==== (((( ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& iiiimmmmaaaaggggeeee ))))
- Assigns a shallow copy of _i_m_a_g_e to this image and returns a
- reference to this image.
-
- See also: copy().
-
- QQQQSSSSttttrrrrLLLLiiiisssstttt QQQQIIIImmmmaaaaggggeeee::::::::oooouuuuttttppppuuuuttttFFFFoooorrrrmmmmaaaattttssss (((()))) [[[[ssssttttaaaattttiiiicccc]]]]
- Returns a list of image formats which are supported for
- image output.
-
- QQQQRRRRggggbbbb QQQQIIIImmmmaaaaggggeeee::::::::ppppiiiixxxxeeeellll (((( iiiinnnntttt xxxx,,,, iiiinnnntttt yyyy )))) ccccoooonnnnsssstttt
- Returns the actual color of the pixel at the given
- coordinates.
-
- If (x,y) is not on the image, the results are undefined.
-
- Examples: qmag/qmag.cpp
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::ppppiiiixxxxeeeellllIIIInnnnddddeeeexxxx (((( iiiinnnntttt xxxx,,,, iiiinnnntttt yyyy )))) ccccoooonnnnsssstttt
- Returns the pixel index at the given coordinates.
-
- If (x,y) is not valid, or if the image is not a paletted
- image (depth() > 8), the results are undefined.
-
- QQQQRRRReeeecccctttt QQQQIIIImmmmaaaaggggeeee::::::::rrrreeeecccctttt (((()))) ccccoooonnnnsssstttt
- Returns the enclosing rectangle (0,0,width(),height()) of
- the image.
-
- See also: width(), height() and size().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::rrrreeeesssseeeetttt (((())))
- Resets all image parameters and deallocates the image data.
-
- Examples: qtimage/qtimage.cpp
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::ssssaaaavvvveeee (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffiiiilllleeeeNNNNaaaammmmeeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ffffoooorrrrmmmmaaaatttt ))))
- ccccoooonnnnsssstttt
- Saves the image to the file _f_i_l_e_N_a_m_e, using the image file
- format _f_o_r_m_a_t. Returns TRUE if successful, or FALSE if the
- image could not be saved.
-
- See also: load(), loadFromData(), imageFormat(),
- QPixmap::save() and QImageIO.
-
- uuuucccchhhhaaaarrrr **** QQQQIIIImmmmaaaaggggeeee::::::::ssssccccaaaannnnLLLLiiiinnnneeee (((( iiiinnnntttt iiii )))) ccccoooonnnnsssstttt
- Returns a pointer to the pixel data at the _i'_t_h scanline.
-
- The scanline data is aligned on a 32-bit boundary.
-
- WWWWaaaarrrrnnnniiiinnnngggg:::: If you are accessing 32-bpp image data, cast the
-
-
-
- Page 10 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- returned pointer to QRgb* (QRgb has a 32 bit size) and use
- it to read/write the pixel value. You cannot use the uchar*
- pointer directly, because the pixel format depends on the
- byte order on the underlying platform. Hint: use qRed() and
- friends (qcolor.h) to access the pixels.
-
- See also: bits().
-
- Examples: desktop/desktop.cpp
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::sssseeeettttAAAAllllpppphhhhaaaaBBBBuuuuffffffffeeeerrrr (((( bbbboooooooollll eeeennnnaaaabbbblllleeee ))))
- Enables alpha buffer mode if _e_n_a_b_l_e is TRUE, otherwise
- disables it. The default setting is disabled.
-
- An 8-bpp image has 8 bit pixels. A pixel is an index into
- the color table, which contains 32-bit color values. In a
- 32-bpp image, the 32 bit pixels are the color values.
-
- This 32 bit value is encoded as follows: The lower 24 bits
- are used for the red, green and blue components. The upper 8
- bits contain the alpha component.
-
- The alpha component specifies the transparency of a pixel. 0
- means completely transparent and 255 means opaque. The alpha
- component is ignored if you do not enable alpha buffer mode.
-
- The alpha buffer is used to set a mask when a QImage is
- translated to a QPixmap.
-
- See also: hasAlphaBuffer() and createAlphaMask().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::sssseeeettttCCCCoooolllloooorrrr (((( iiiinnnntttt iiii,,,, QQQQRRRRggggbbbb cccc ))))
- Sets a color in the color table at index _i to _c.
-
- A color value is an RGB triplet. Use the qRgb function
- (defined in qcolor.h) to make RGB triplets.
-
- See also: color().
-
- Examples: desktop/desktop.cpp
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::sssseeeettttNNNNuuuummmmCCCCoooolllloooorrrrssss (((( iiiinnnntttt nnnnuuuummmmCCCCoooolllloooorrrrssss ))))
- Resizes the color table to _n_u_m_C_o_l_o_r_s colors.
-
- If the color table is expanded, then all new colors will be
- set to black (RGB 0,0,0).
-
- See also: color() and setColor().
-
- vvvvooooiiiidddd QQQQIIIImmmmaaaaggggeeee::::::::sssseeeettttPPPPiiiixxxxeeeellll (((( iiiinnnntttt xxxx,,,, iiiinnnntttt yyyy,,,, uuuuiiiinnnntttt iiiinnnnddddeeeexxxx____oooorrrr____rrrrggggbbbb ))))
- Sets the pixel index or color at the given coordinates.
-
-
-
-
- Page 11 (printed 9/22/98)
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- If (x,y) is not valid, or if the image is a paletted image
- (depth() <= 8) and _i_n_d_e_x__o_r__r_g_b >= numColors(), the results
- are undefined.
-
- QQQQSSSSiiiizzzzeeee QQQQIIIImmmmaaaaggggeeee::::::::ssssiiiizzzzeeee (((()))) ccccoooonnnnsssstttt
- Returns the size of the image.
-
- See also: width(), height() and rect().
-
- QQQQIIIImmmmaaaaggggeeee QQQQIIIImmmmaaaaggggeeee::::::::ssssmmmmooooooootttthhhhSSSSccccaaaalllleeee (((( iiiinnnntttt wwwwiiiiddddtttthhhh,,,, iiiinnnntttt hhhheeeeiiiigggghhhhtttt )))) ccccoooonnnnsssstttt
- Returns a copy of the image smoothly scaled to _w_i_d_t_h by
- _h_e_i_g_h_t pixels. For 32-bpp images, and 1-bpp/8-bpp color
- images, the result will be 32-bpp, while all-gray images
- (including black-and-white 1-bpp) will produce 8-bit
- grayscale images with the palette spanning 256 grays from
- black to white.
-
- This function uses code based on:
-
- pnmscale.c - read a portable anymap and scale it
-
- Copyright (C) 1989, 1991 by Jef Poskanzer.
-
- Permission to use, copy, modify, and distribute this
- software and its documentation for any purpose and without
- fee is hereby granted, provided that the above copyright
- notice appear in all copies and that both that copyright
- notice and this permission notice appear in supporting
- documentation. This software is provided "as is" without
- express or implied warranty.
-
- QQQQIIIImmmmaaaaggggeeee::::::::EEEEnnnnddddiiiiaaaannnn QQQQIIIImmmmaaaaggggeeee::::::::ssssyyyysssstttteeeemmmmBBBBiiiittttOOOOrrrrddddeeeerrrr(((()))) [[[[ssssttttaaaattttiiiicccc]]]]
- Determines the bit order of the display hardware. Returns
- QImage::LittleEndian (LSB first) or QImage::BigEndian (MSB
- first).
-
- QQQQIIIImmmmaaaaggggeeee::::::::EEEEnnnnddddiiiiaaaannnn QQQQIIIImmmmaaaaggggeeee::::::::ssssyyyysssstttteeeemmmmBBBByyyytttteeeeOOOOrrrrddddeeeerrrr(((()))) [[[[ssssttttaaaattttiiiicccc]]]]
- Determines the host computer byte order. Returns
- QImage::LittleEndian (LSB first) or QImage::BigEndian (MSB
- first).
-
- bbbboooooooollll QQQQIIIImmmmaaaaggggeeee::::::::vvvvaaaalllliiiidddd (((( iiiinnnntttt xxxx,,,, iiiinnnntttt yyyy )))) ccccoooonnnnsssstttt
- Tests if the ( _x, _y ) is a valid coordinate in the image.
-
- Examples: qmag/qmag.cpp
-
- iiiinnnntttt QQQQIIIImmmmaaaaggggeeee::::::::wwwwiiiiddddtttthhhh (((()))) ccccoooonnnnsssstttt
- Returns the width of the image.
-
- See also: heigth(), size() and rect().
-
- RRRREEEELLLLAAAATTTTEEEEDDDD FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
-
-
-
- PPPPaaaaggggeeee 11112222 ((((pppprrrriiiinnnntttteeeedddd 9999////22222222////99998888))))
-
-
-
-
-
-
- QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQIIIImmmmaaaaggggeeee((((3333qqqqtttt))))
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< ((((QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& ssss,,,, ccccoooonnnnsssstttt QQQQIIIImmmmaaaaggggeeee &&&& iiiimmmmaaaaggggeeee))))
- Writes an image to the stream as a BMP image.
-
- See also: QImage::save().
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> ((((QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& ssss,,,, QQQQIIIImmmmaaaaggggeeee &&&& iiiimmmmaaaaggggeeee))))
- Reads an image from the stream.
-
- See also: QImage::load().
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqiiiimmmmaaaaggggeeee....hhhhttttmmmmllll
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
- Copyright 1992-1997 Troll Tech AS. See the LICENSE file
- included in the distribution for a complete license
- statement.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Generated automatically from the source code.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 13 (printed 9/22/98)
-
-
-
-